home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12779 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: howland.reston.ans.net!psinntp!psinntp!psinntp!psinntp!usenet
  2. From: grantp@usa.pipeline.com(Pete Grant)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: MSVC++: HOW to build a dialog without ClassWizard?
  5. Date: 21 Mar 1996 16:44:31 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4is11f$anq@news1.h1.usa.pipeline.com>
  8. References: <4irpd5$cqb@krant.cs.ruu.nl>
  9. NNTP-Posting-Host: 38.8.53.2
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete Grant)
  13. X-Newsreader: Pipeline v3.5.0
  14.  
  15. On Mar 21, 1996 14:34:13 in article <MSVC++: HOW to build a dialog without
  16. ClassWizard?>, 'rvliet@cs.ruu.nl (Roeland van Vliet)' wrote: 
  17.  
  18.  
  19. >Hello to all C++-programmers, 
  20. >Question: 
  21. >How can I build my own dialog without the use of 
  22. >the classwizard in MSVC++? 
  23. Do you allow the use of a resource editor?  If so, 
  24. create the skeleton with it.  If not, use RegisterWindow 
  25. and CreateWindow with appropriate options.  In either  
  26. case, you will have to define your own window procedure 
  27. for the dialog. 
  28.  
  29. >How can I add several controls to an existing dialog? 
  30. CreateWindow(); 
  31.  
  32. There may be a better way.  If you are attempting to have a 
  33. modifiable, but predictable dialog, there's a standard trick 
  34. for that.  Create the dialog with your classwiz/resource editor, 
  35. then move the controls you do not want to show immediately 
  36. outside the dialog's boundaries.  When you want to change the 
  37. controls in the dialog, move the unwanted ones out and wanted 
  38. controls back inside.   
  39.  
  40. -- 
  41. Pete Grant 
  42. Kalevi, Inc. 
  43. Software Engineering & development
  44.